package main

import "fmt"

func main() {
	ch := make(chan int, 5)
	data := 0
label:
	for {
		select {
		case ch <- data:
		default:
			fmt.Println("ch缓存满了")
			break label
		}
	}
}
